<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;">
    <div class="layui-card">
        <form class="layui-form" method="post" lay-filter="baseForm" id="baseForm">
            <input type="hidden" name="id" id="id"/>
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>基础信息</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">客户编号</label>
                        <div class="layui-input-block">
                            <input name="code" id="code" class="layui-input no-modification" placeholder="不输入则系统自动生成" maxlength="20" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>公司名称</label>
                        <div class="layui-input-block">
                            <input name="name" id="name" class="layui-input required no-modification" lay-verify="required" placeholder="公司名称(回车自动检测海关注册编码)" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">英文名称</label>
                        <div class="layui-input-block">
                            <input name="nameEn" id="nameEn" class="layui-input" placeholder="英文名称" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label"><span class="text-danger">*</span>社会信用代码</label>
                        <div class="layui-input-block">
                            <input name="socialNo" id="socialNo" class="layui-input required" lay-verify="required" placeholder="18位社会信用代码(回车自动检测海关注册编码)" maxlength="18" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">海关注册编码</label>
                        <div class="layui-input-block">
                            <input name="customsCode" id="customsCode" class="layui-input" placeholder="10位海关注册编码" maxlength="10" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">检验检疫编码</label>
                        <div class="layui-input-block">
                            <input name="ciqNo" id="ciqNo" class="layui-input" placeholder="10位检验检疫编码" maxlength="10" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">公司法人</label>
                        <div class="layui-input-block">
                            <input name="legalPerson" id="legalPerson" class="layui-input" placeholder="公司法人" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">公司电话</label>
                        <div class="layui-input-block">
                            <input name="tel" id="tel" class="layui-input" placeholder="公司电话" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">公司传真</label>
                        <div class="layui-input-block">
                            <input name="fax" id="fax" class="layui-input" placeholder="公司传真" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">公司地址</label>
                        <div class="layui-input-block">
                            <input name="address" id="address" class="layui-input" placeholder="公司详细地址" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">英文地址</label>
                        <div class="layui-input-block">
                            <input name="addressEn" id="addressEn" class="layui-input" placeholder="英文地址" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">销售人员</label>
                        <div class="layui-input-block">
                            <select id="salePersonId" name="salePersonId" lay-verify="required" class="sel-load" lay-search sel-url="scm/person/positionList?position=sale" sel-key="id" sel-val="name" sel-first="暂不分配"></select>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">商务人员</label>
                        <div class="layui-input-block">
                            <div class="layui-col-md6">
                                <select id="busPersonId" name="busPersonId" lay-verify="required" class="sel-load" lay-search sel-url="scm/person/positionList?position=business" sel-key="id" sel-val="name" sel-first="暂不分配"></select>
                            </div>
                            <div class="layui-col-md6">
                                <select id="busSecPersonId" name="busSecPersonId" lay-verify="required" class="sel-load" lay-search sel-url="scm/person/positionList?position=business" sel-key="id" sel-val="name" sel-first="暂不分配"></select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>联系人信息</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">联系人</label>
                        <div class="layui-input-block">
                            <input name="linkPerson" id="linkPerson" class="layui-input" placeholder="联系人" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-block">
                            <input name="linkTel" id="linkTel" class="layui-input" placeholder="联系电话" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">

                    </div>
                </div>

                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">联系地址</label>
                        <div class="layui-input-block">
                            <div class="layui-col-md2">
                                <input type="text" name="linkAddArea" id="linkAddArea" class="layui-input start-input area" placeholder="请选择区域"/>
                            </div>
                            <div class="layui-col-md10">
                                <input name="linkAddress" id="linkAddress" class="layui-input end-input" placeholder="请输入详细地址" clear-val/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>开票信息</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">纳税人识别号</label>
                        <div class="layui-input-block">
                            <input name="taxpayerNo" id="taxpayerNo" class="layui-input" placeholder="纳税人识别号" maxlength="18" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">开户银行</label>
                        <div class="layui-input-block">
                            <input name="invoiceBankName" id="invoiceBankName" class="layui-input" placeholder="开户银行" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">银行账号</label>
                        <div class="layui-input-block">
                            <input name="invoiceBankAccount" id="invoiceBankAccount" class="layui-input" placeholder="银行帐号" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md4">
                        <label class="layui-form-label">开票电话</label>
                        <div class="layui-input-block">
                            <input name="invoiceBankTel" id="invoiceBankTel" class="layui-input" placeholder="开票电话" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">开票地址</label>
                        <div class="layui-input-block">
                            <input name="invoiceBankAddress" id="invoiceBankAddress" class="layui-input" placeholder="开票地址" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label">开票要求</label>
                        <div class="layui-input-block">
                            <input name="invoiceMemo" id="invoiceMemo" class="layui-input" placeholder="开票要求" clear-val/>
                        </div>
                    </div>
                </div>
            </div>
        </form>

        <form class="layui-form" method="post" id="bankForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>银行信息</span></div>
            <div class="layui-card-body">
                <table class="layui-hide" id="bank-list" lay-filter="bank-list"></table>
                <div class="mt10"><a href="javascript:" class="layui-btn layui-btn-sm" onclick="addBank()"><i class="fa fa-plus-circle"></i>添加一行</a></div>
            </div>
        </form>

        <form class="layui-form" method="post" id="deliveryForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>进口国内收货信息 / 出口国内提货信息</span></div>
            <div class="layui-card-body">
                <table class="layui-hide" id="delivery-info-list" lay-filter="delivery-info-list"></table>
                <div class="mt10"><a href="javascript:" class="layui-btn layui-btn-sm" onclick="addDelivery()"><i class="fa fa-plus-circle"></i>添加一行</a></div>
            </div>
        </form>

        <form class="layui-form" method="post" id="abroadDeliveryForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>出口境外收货信息</span></div>
            <div class="layui-card-body">
                <table class="layui-hide" id="abroad-delivery-info-list" lay-filter="abroad-delivery-info-list"></table>
                <div class="mt10"><a href="javascript:" class="layui-btn layui-btn-sm" onclick="addAbroadDelivery()"><i class="fa fa-plus-circle"></i>添加一行</a></div>
            </div>
        </form>

        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
        <div class="layui-card-body">
            <div class="layui-row">
                <fieldset class="layui-elem-field">
                    <legend>三证资料</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="cus_business"></div>
                    </div>
                </fieldset>
                <fieldset class="layui-elem-field">
                    <legend>开票资料</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="cus_invoice"></div>
                    </div>
                </fieldset>
                <fieldset class="layui-elem-field">
                    <legend>法人身份证</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="cus_legal_id"></div>
                    </div>
                </fieldset>
                <fieldset class="layui-elem-field">
                    <legend>其它资料</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="cus_other"></div>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>
</div>
<div class="tsf-page-btn-group">
    <button type="button" class="layui-btn layui-btn-sm layui-btn-normal save-btn"><i class="fa fa-save" aria-hidden="true"></i>提交保存</button>
    <button type="button" class="layui-btn layui-btn-sm examine-btn zm-hide"><i class="fa fa-check-circle-o" aria-hidden="true"></i>提交审核</button>
    <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>关闭</button>
</div>

<script type="text/html" id="deOperaBar">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deDel">删除</a>
</script>
<script type="text/html" id="deOperaAbroadBar">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deDelAbroad">删除</a>
</script>
<script type="text/html" id="companyNameTemp">
    <input type="hidden" name="id" value="{{d.id}}"/>
    <input type="text" name="companyName" class="layui-input" placeholder="收货公司" value="{{d.companyName}}"/>
</script>
<script type="text/html" id="linkPersonTemp">
    <input type="text" name="linkPerson" class="layui-input required" placeholder="联系人" value="{{d.linkPerson}}"/>
</script>
<script type="text/html" id="linkTelTemp">
    <input type="text" name="linkTel" class="layui-input required" placeholder="联系电话" value="{{d.linkTel}}"/>
</script>
<script type="text/html" id="areaTemp">
    <input type="text" name="area" class="layui-input required area" lay-verify="required" placeholder="收货区域" value="{{d.area}}"/>
</script>
<script type="text/html" id="addressTemp">
    <input type="text" name="address" class="layui-input required" lay-verify="required" placeholder="详细地址" value="{{d.address}}"/>
</script>
<script type="text/html" id="disabledTemp">
    {{#if(d.disabled==false){}}
    <input type="checkbox" name="disabled" lay-skin="switch" checked lay-text="启用|禁用"/>
    {{#}else{ }}
    <input type="checkbox" name="disabled" lay-skin="switch" lay-text="启用|禁用"/>
    {{#}}}
</script>
<script type="text/html" id="isDefaultTemp">
    {{#if(d.isDefault==true){}}
    <input type="radio" name="isDefault" checked/>
    {{#}else{ }}
    <input type="radio" name="isDefault"/>
    {{#}}}
</script>

<script type="text/html" id="bankNameTemp">
    <input type="hidden" name="id" value="{{d.id}}"/>
    <input type="text" name="name" class="layui-input required" placeholder="银行名称" value="{{d.name}}"/>
</script>
<script type="text/html" id="bankAccountTemp">
    <input type="text" name="account" class="layui-input required" placeholder="银行账号" value="{{d.account}}"/>
</script>
<script type="text/html" id="bankAddressTemp">
    <input type="text" name="address" class="layui-input" placeholder="详细地址" value="{{d.address}}"/>
</script>

<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/sel-city.js?v=202001010101"></script>
<script type="text/javascript" src="/customer/edit.js?v=202205310949"></script>
</body>
</html>